package com.erp.util;

import java.math.BigDecimal;

/**
 * 金額修改DTO
 */
public class AmountDTO {
    private Integer id;
    private BigDecimal amount;
    // 添加源单编号字段(若DTO映射的是账户或者往来单位, 此字段可以不必理会)
    private String originSlipsSerial;
    // 如果是单据相关的DTO, 那么该字段存储单据类型, 如果是账户或往来单位, 此字段不必理会
    // 源单类型，取值1~4，分别对应源单id所可能关联的四种源单 1: 收款单 2: 销货单 3: 付款单 4: 购货单 5: 销货退货单 6: 购货退货单
    private Integer typeOfSlips;

    public Integer getTypeOfSlips() {
        return typeOfSlips;
    }

    public void setTypeOfSlips(Integer typeOfSlips) {
        this.typeOfSlips = typeOfSlips;
    }

    public String getOriginSlipsSerial() {
        return originSlipsSerial;
    }

    public void setOriginSlipsSerial(String originSlipsSerial) {
        this.originSlipsSerial = originSlipsSerial;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "AmountDTO{" +
                "id=" + id +
                ", amount=" + amount +
                ", originSlipsSerial='" + originSlipsSerial + '\'' +
                ", typeOfSlips=" + typeOfSlips +
                '}';
    }
}
